﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 产品提前备货 主表
    /// </summary>
    [SugarTable("CPTQBHHeader")]
    public class CPTQBHHeader : BaseHead
    {
        /// <summary>
        /// 所属销售部
        /// </summary>
        public string SalesDepartment { get; set; }

        /// <summary>
        /// 所属销售分部
        /// </summary>
        public string SalesDivision { get; set; }

        /// <summary>
        /// 销售公司
        /// </summary>
        public string SalesCompany { get; set; }

        /// <summary>
        /// 所属大区
        /// </summary>
        public string SalesArea { get; set; }

        /// <summary>
        /// 交付运营中心
        /// </summary>
        public string OperationCenter { get; set; }

        /// <summary>
        /// 备货所属工厂
        /// </summary>
        public string Factory { get; set; }

        /// <summary>
        /// 工厂描述
        /// </summary>
        public string FactoryDes { get; set; }

        /// <summary>
        /// 客户编号
        /// </summary>
        public string CustomerNo { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string CustomerName { get; set; }

        /// <summary>
        /// 客户类型
        /// </summary>
        public string CustomerType { get; set; }

        /// <summary>
        /// 客户地址
        /// </summary>
        public string CustomerAddress { get; set; }

        /// <summary>
        /// 产品提前备货原因
        /// </summary>
        public string Reason { get; set; }

        /// <summary>
        /// 信用状态（特价申请是否已通过）
        /// </summary>
        public string TJApply { get; set; }

        /// <summary>
        /// 新客户（信用申请是否已通过）
        /// </summary>
        public string XYApply { get; set; }

        /// <summary>
        /// 欠款（含主分账户）
        /// </summary>
        public string Debt { get; set; }

        /// <summary>
        /// 逾期（含主分账户）
        /// </summary>
        public string Arrears { get; set; }

        /// <summary>
        /// 交付运营主管id
        /// </summary>
        public string JFYYZGId { get; set; }

        /// <summary>
        /// 交付运营主管id
        /// </summary>
        public string CXZGId { get; set; }

        /// <summary>
        /// 备货总金额
        /// </summary>
        public string TotalPrice { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        ///  行数据
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<CPTQBHDetail> LineData { get; set; }
    }
}
